<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>

<%@ taglib uri="urihtml" prefix="html" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Login</title>
<jsp:include page="/jsp/menu.jsp" />
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/style.css" />
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/form.css" />
</head>
<body>
<%
String feedback = (String)request.getAttribute("feedback");
%>
<div id="first" style="margin-top: 2%;">
	<html:form action="login.do" method="post" >
	
	<%if(feedback != null){%>
		<strong style="color:black;"><%=feedback%></strong>
	<%}%> <br><br>
	
 <label id="email" >Email <html:text property="email" styleClass="form" /> </label> <br> <html:errors bundle="errors" property="email" />
	<br><br>
	<label id="psw">Password <html:password property="password" styleClass="form"/> <br> </label> <html:errors bundle="errors" property="password" />
	<br><br>
	<html:submit value="  login  " styleClass="submit"/>
 
 
	</html:form>
	<br><br>
	<a style="text-decoration: none;" href = "vaiRecuperaPassword.do">Hai dimenticato la Password?</a>
</div>


<%
String error = (String) request.getAttribute("error"); 
if(error != null) { %>
	<p><%=error %></p>
<%}%>

<br><br>

</body>
</html>